#ifndef ELEMENTS_WORKFLOW_H
#define ELEMENTS_WORKFLOW_H

#include "element.h"

namespace Elements
{

struct Workflow : public Element
{
    Workflow() = default;
    Workflow(const Workflow& other);

    // -- Интерфейс элемента -- //

    virtual bool isSame(Element* other) const override;

    virtual Common::Json toJson() const override;
    virtual void fromJson(const Common::Json& json) override;

    virtual Element* clone() const override;
    virtual ElementType elementType() const override;

    // -- Интерфейс данных -- //

    std::string caption() const;
    void setCaption(const std::string& value);

    std::string description() const;
    void setDescription(const std::string& value);

private:
    std::string m_caption;
    std::string m_description;
};

typedef std::shared_ptr<Workflow> WorkflowPtr;
typedef std::vector<WorkflowPtr> Workflows;

} // namespace Elements

#endif // ELEMENTS_WORKFLOW_H
